#pragma once

#ifndef SERIAL_H
#define	SERIAL_H

#include <string>
#include <windows.h>

class serial 
{
	HANDLE hSerial;

	std::string port_;
	DWORD bitrate_;

public:
    serial::serial(const std::string& port, DWORD bitrate);
	~serial()
	{}

	void open();
	DWORD write(void* data, DWORD len);
	void close();
};

#endif
